import {abstract_point} from "./abstract-point";
import {http} from "./http";

/**
 * 刷活动积分(+2×5)
 * 目前该分数无法得到
 */
export class apoint extends abstract_point{

    /**
     *
     * @param user {user} 对象
     * @param time {Number} 执行次数
     */
    constructor(user,time=5){
        super(user,time);
        this.nickName="活动积分";
    }


    async request(){
        return http.get("/pss/service/postPoint?operateType=apoint" +
            "&userAccount=" + this.userAccount +
            "&domainCode=" + this.domainCode +
            "&"+"timestamp=" + new Date() +
            "&ssid=" +this.user.sid
        );
    }


}

